package com.huo.com.mdxinterface;

import com.huo.com.mdxzhujie.CheckMDX;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


//SpringBoot+redis+注解+拦截器 实现接口幂等性调用校验


@RestController
public class TestLJQController {

    @RequestMapping(value = "/mdx/test01",method = RequestMethod.POST)
    @CheckMDX
    public void test01(@RequestParam("token") String token){

        System.out.println("=======controller========"+token);

    }


    @RequestMapping("gettoken")
    public String getToken(){

        //生成一个token

        //将token存入reids  （注意设置一下过期时间）

        //返回生成的token

        return "";
    }

}
